<template>
<div class="home">
  <div class="header">
    <div class="left iconfont icon-zuola"></div>
    <div class="input">
      <span class="iconfont icon-search"></span>输入城市/游玩/经典
    </div>
    <router-link to='/city'>
    <div class="right">
      {{ this.city }}
      <span class="iconfont icon-xiala"></span>
    </div>
    </router-link>
  </div>
  </div>
</template>
<script>
import { mapState } from 'vuex'
export default {
  name: 'homeHeader',
  components: {},
  data () {
    return {}
  },
  props: {
    hotCities: String
  },
  computed: {
    ...mapState(['city'])
  },
  watch: {},
  methods: {}
}
</script>
<style lang='scss' scoped>
@import "~@/assets/css/vertauls.scss";
.header {
  line-height: $headerHeight;
  display: flex;
  justify-content: space-between;
  background-color: $bgColor;
  color: #fff;
  font-size: 24px;
  .left {
    width: 64px;
    float: left;
    text-align: center;
    font-size: 28px;
  }
  .input {
    flex: 1;
    margin-top: 12px;
    padding-left: 12px;
    height: 62px;
    line-height: 62px;
    border-radius: 5px;
    background-color: #fff;
    color: #ccc;
    font-size: 24px;
    // text-align: left;
    span {
      font-size: 24px;
      margin-right: 5px;
    }
  }
  .right {
    min-width: 124px;
    padding: 0 5px;
    float: right;
    text-align: center;
    color: #fff;
    font-size: 24px;
  }
}
</style>
